package model

import "time"

// WechatOpenSubApp 微信开放平台子商户
type WechatOpenSubApp struct {
	BaseModel
	OpenAppID    string     `gorm:"comment:开放平台ID"`
	AppID        string     `gorm:"comment:应用ID;uniqueIndex:wechat_sup_app_id"`
	Token        string     `gorm:"comment:应用token"`
	RefreshToken string     `gorm:"comment:应用refresh_token"`
	ExpiredAt    *time.Time `gorm:"comment:token过期时间"`
	Status       string     `gorm:"comment:状态 authorized unauthorized"`
}
